#pragma once

#include "../_inc_set/def_setting.h"
#include "TimeZone.h"


class CStatusMgr
{
private:
	VIEWER_SETTING		m_ViewerSetting;
	LAYOUT				m_nLayOut;

	BOOL				m_bOpened;

	KConfig				m_KConfig;
	TCHAR				m_tzConfigPath[MAX_PATH];
	TCHAR				m_tzViewerPath[MAX_PATH];
	TCHAR				m_tzSelectPath[MAX_PATH];
	TCHAR				m_tzModelPath[MAX_PATH];

	DOUBLE				m_dTZoneTb[41];
	DOUBLE				m_tTimezone;

	BOOL				m_bOpenedConfig;
	CTimeZone			m_TimeZone;

	KConfig				m_KCreateConfig;

public:
	CStatusMgr(void);
	~CStatusMgr(void);

	void Initialize();

	BOOL LoadBlackboxSetting();
	BOOL SaveBloackboxSetting();

	BOOL OpenKConfig();
	void GetKConfig(PKConfig pKconfig);
	void SetKConfig(PKConfig pKconfig);
	DWORD GetSpeedometer();

	void SetConfigPath(TCHAR* tzConfigPath);

	BOOL IsDbOpened()			{ return  m_bOpened;	  };
	BOOL IsOpenConfig()			{ return m_bOpenedConfig; };
	TCHAR* GetConfigPath()		{ return  m_tzConfigPath; };
	TCHAR* GetSelectPath()		{ return m_tzSelectPath; };
	TCHAR *GetViewerPath()		{ return m_tzViewerPath; };
	TCHAR* GetModelPath();

	DOUBLE GetTimezone()		{ return  m_tTimezone;	};

	void GetMyDirectory(TCHAR *tzPath);


private:
	void InitBlackboxSetting();	
};

